/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;
import javax.servlet.ServletContext;

/**
 *
 * @author isaias
 */
@ManagedBean
@RequestScoped
public class SharedManagedBean {

    /** Creates a new instance of SharedManagedBean */
    public SharedManagedBean() {
    }

    public String contextPath(){
         ServletContext servletContext = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();
        return servletContext.getContextPath();
    }
}
